package com.ljq.ipi;

/**
 * Description:洗衣机
 * Author:ljq
 * Date:2025-02-16
 * Time:23:32
 */
public class WashingMachine  extends  Appliance{
    private double capacity;        // 洗衣机容量（单位：公斤）
    private String washingType;     // 洗涤方式（如波轮式、滚筒式等）

    public WashingMachine(double capacity, String washingType) {
        this.capacity = capacity;
        this.washingType = washingType;
    }

    public WashingMachine(String brand, String model, String color, double price, String manufacturer, double capacity, String washingType) {
        super(brand, model, color, price, manufacturer);
        this.capacity = capacity;
        this.washingType = washingType;
    }

    public double getCapacity() {
        return capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }

    public String getWashingType() {
        return washingType;
    }

    public void setWashingType(String washingType) {
        this.washingType = washingType;
    }

    @Override
    public String toString() {
        return "WashingMachine{" +
                "capacity=" + capacity +
                ", washingType='" + washingType + '\'' +
                '}' + super.toString();
    }
}
